import os, os.path, sys, wx
from wx import xrc

class Classifier:
    eventTypes = {'wxButton':wx.EVT_BUTTON, 'wxTextCtrl':wx.EVT_TEXT, 'wxSpinCtrl':wx.EVT_SPINCTRL,
            'wxComboBox':wx.EVT_COMBOBOX, 'wxCheckBox':wx.EVT_CHECKBOX, 'wxRadioBox':wx.EVT_RADIOBOX,
            'wxNotebook':wx.EVT_NOTEBOOK_PAGE_CHANGED}
    def __init__(self, dataDisplayer):
        self.dataDisplayer = dataDisplayer

    def getEventType(self, controlName):
        return self.eventTypes[self.dataDisplayer.getControl(controlName).ClassName]

